<div ng-controller="userroleCtrl">

	<div class="mainview">
		<div class="pensonel_role">
			<div class="pensonel_rolel">	
				<selectormodal ng-if="ApiData.ApiOpen"   apidata="ApiData" ></selectormodal>
			</div>
			<div class="pensonel_roler" style="z-index:998;overflow: inherit">
				<div class="pensonel_role_Nodecontrol" >
					<div class="pensonel_role_Nodecontroltitle">
						<div ng-if="PublicObj.roles_ID!=''" class="pensonel_role_Nodecontroltitlel">节点编辑</div>
						<div ng-if="PublicObj.roles_ID==''" class="pensonel_role_Nodecontroltitlel">节点新增</div>
						<div class="pensonel_role_zwf"></div>
						<div class="pensonel_role_Nodecontroltitler">

                    <div btncon="btnAdd" class="xzzjd" btn-obj="btnlist"><i class="iconfont">&#xe7f7;</i>
							<span ng-show="IdisNull()" >新增节点</span>
							<span ng-show="!IdisNull()">新增子节点</span>
					</div>

                    <div btncon="btnDel" class="delect" btn-obj="btnlist"><i class="iconfont">&#xe606;</i>删除</div>
					</div>
				</div>
				<div class="pensonel_role_Nodecontrolmain">
					<div class="pensonel_role_Nodecontrolmaincolumn">
						<ul class="pensonel_role_Nodecontroljdsz">
							<li><div class="pensonel_role_Nodecontroljdszl"><label for=""><i class="iconfont">&#xe61a;</i>节点编号</label></div><div class="pensonel_role_Nodecontroljdszr"><input  ng-model="PublicObj.roles_No" type="" placeholder="必填" value=""><span ng-click="NewNo()" class="pensonel_role_Nodecontroljdszxg">自动生成</span></div></li>
							<li><div class="pensonel_role_Nodecontroljdszl"><label><i class="iconfont">&#xe713;</i>节点名称</label></div><div class="pensonel_role_Nodecontroljdszr"><input type="text" set-focus ng-model="PublicObj.roles_Name" placeholder="必填" name=""></div></li>
							<li><div class="pensonel_role_Nodecontroljdszl"><label><i class="iconfont">&#xe630;</i>父节点</label></div><div class="pensonel_role_Nodecontroljdszr"><input type=""  placeholder="如不选择 将做为父节点创建" ng-model="PublicObj.parentName" name="" disabled="disabled"><span ng-click="UpdateParentFun($event)" class="pensonel_role_Nodecontroljdszxg">修改级别</span></div>
							<selectormodal  ng-if="ParentData.ApiOpen" apidata="ParentData" ></selectormodal>
							</li>
							<li><div class="pensonel_role_Nodecontroljdszl"><label><i class="iconfont">&#xe91b;</i>人员数量</label></div><div class="pensonel_role_Nodecontroljdszr"><input type="" ng-show="!PeopleData.ApiOpen" name="" disabled="disabled" ng-model="PublicObj.roles_Num" ">
<input ng-show="PeopleData.ApiOpen" type="" title="" ng-model="PeopleData.UserList.length"  name="" disabled="disabled" >
							<span ng-click="AddUserListFun($event)" class="pensonel_role_Nodecontroljdszxg">批量添加人员</span></div>
<selectormodal  ng-if="PeopleData.ApiOpen" apidata="PeopleData" ></selectormodal>
							</li>
								<li><div class="pensonel_role_Nodecontroljdszl"><label><i class="iconfont">&#xe713;</i>显示顺序</label></div><div class="pensonel_role_Nodecontroljdszr"><input type="text" required    placeholder="必填" ng-model="PublicObj.wSort" name="">
								</div></li>
						</ul>
					</div>
					<div class="pensonel_role_Nodecontrolmaincolumn">
						<div class="pensonel_role_Nodecontrolgnqx">
							<div class="pensonel_role_Nodecontrolgnqxtitle"><i class="iconfont">&#xe650;</i>角色功能权限</div>
                            <jisu-perm  jisu-model="ParentData.userAuthorityList"></jisu-perm>
						</div>
					</div>
					<div class="pensonel_role_Nodecontrolmaincolumn">
						<div class="Person_in_charge_Nodecontrolfzr">
	<div class="Person_in_charge_Nodecontrolfzrtitle"><i class="iconfont"></i>负责人</div>
		<div class="Person_in_charge_Nodecontrolfzrmain">
			<ul>
	 			<li ng-repeat="item in personList"><div title="{{item.user_Name}}" labelshow-directive="{{item.user_ID}}"  class="img-circle Person_in_charge_Nodecontrolfzr_img">
                <span ng-click="DelPersonListFun(item.user_ID)" class="personnelIMnamemain_del">X</span>
                <img ng-src="{{item.user_Img}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'"/></span></li>
				<li tooltips tooltip-template="注意：负责人只负责当前角色，不包含子角色"><div ng-click="AddpersonFun($event)" class="checkboxsxtjtj">+</div></li>
	 		</ul>
	</div>
</div>
					</div>
				</div>


			</div>
             <!--ng-click="SaveFun()" -->
			<selectormodal  ng-if="personData.ApiOpen" apidata="personData" ></selectormodal>
			<div class="pensonel_role_Nodecontrolfooter">
                <button class="btn" btncon="btnAdd btnUpd" btn-obj="btnlist" ng-if="!isloading">保存</button>
                <div class="btn new_curriculum_bottom_quxiao" ng-if="isloading">
                    <btnloading isbtnload="isloading" style="float:left;padding-right: 6px;margin-top: 2px;"></btnloading>保存中
                </div>
            </div>
		<loading isloading="isloading"></loading>
	</div>
</div>
</div>
</div>
